package com.wechat.file.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UploadRequest {

    /**
     * 文件MD5
     */
    @NotBlank(message = "文件MD5不能为空")
    @Pattern(regexp = "^[a-fA-F0-9]{32}$", message = "MD5格式不正确")
    private String fileMd5;

    /**
     * 文件分类
     */
    @NotBlank(message = "文件分类不能为空")
    private String category;
}
